package com.hwg.shiliupro.po;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;

/**
 * 会话实体
 *
 * @author huangweiguo
 * @date 2022/12/04
 */
@Data
public class SessionList implements Serializable {
    /**
     * 主键id
     */
    private Integer id;
    /**
     * 所属用户id
     */
    @TableField("user_id")
    private Integer userId;
    /**
     * 所属用户id
     */
    @TableField("to_user_id")
    private Integer toUserId;
    /**
     * 会话名称
     */
    @TableField("list_name")
    private String listName;
    /**
     * 未读消息数
     */
    @TableField("un_read_count")
    private Integer unReadCount;

    public SessionList() {
    }

    public SessionList(Integer id, Integer userId, Integer toUserId, String listName, Integer unReadCount) {
        this.id = id;
        this.userId = userId;
        this.toUserId = toUserId;
        this.listName = listName;
        this.unReadCount = unReadCount;
    }
}
